#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#define MAXN 25
int a[MAXN];
int main() {
    int n, x;
    scanf("%d", &n);
    for (int i = 1; i <= n; ++i) {
        scanf("%d", &a[i]);
    }
    scanf("%d", &x);
    int i;
    for (i = 1; i <= n; ++i) {
        if (a[i] == x) {
            printf("%d\n", i);
            return 0;
        }
    }
    printf("NO\n");
    return 0;
}